home *** CD-ROM | disk | FTP | other *** search
- // ================
- // BATTLEZONE SHELL
- // ================
-
- //
- // CREATE SHELL SINGLE PLAYER PAGE
- //
- CreateControl("ShellSingle", "WINDOW")
- {
- // inherit root window's dimensions
- Geometry("PARENTWIDTH", "PARENTHEIGHT");
-
- // set window style
- Style("TRANSPARENT");
-
- //
- // create the "abort" button
- //
- CreateControl("Abort", "BUTTON")
- {
- ColorGroup("MAGENTA");
-
- Geometry("RIGHT", "BOTTOM");
- Position(-520, -15);
- Size(100, 15);
- BorderSize(5);
- BevelSize(3);
- Text("Abort");
- Font("SMALL");
- JustifyText("CENTER");
- Style("ROLLOVER", "OUTLINE");
- //Projector(0);
- Cursor("Highlight");
- NotifyParent("Button::Press", "Abort");
- }
-
- //
- // create the "Options" button
- //
- CreateControl("Options", "BUTTON")
- {
- ColorGroup("MAGENTA");
-
- Geometry("RIGHT", "BOTTOM");
- Position(-395, -15);
- Size(100, 15);
- BorderSize(5);
- BevelSize(3);
- Text("Options");
- Font("SMALL");
- JustifyText("CENTER");
- Style("ROLLOVER", "OUTLINE");
- //Projector(0);
- Cursor("Highlight");
- NotifyParent("Button::Press", "Options");
- }
-
- //
- // create the "Objectives" display
- //
-
- CreateControl("Objectives", "WINDOW")
- {
- Position(20, 30);
- Size(240, 140);
- BorderSize(10);
- BevelSize(5);
- TabSize(150, 10);
- Style("OUTLINE");
- //Projector(7);
- Title("Mission Objectives");
-
- CreateControl("Objectives", "LISTBOX")
- {
- ColorGroup("BACKGROUND");
- Position(10, 10);
- Size(220, 120);
- CellSize(300, 10);
- Style("NOSELECTION", "TRANSPARENT");
- BorderSize(5);
- BevelSize(5);
- Font("SMALL");
- UseVar("shell.single.objectives");
- Cursor("Highlight");
- }
- }
-
- //
- // create the "world" display
- //
- CreateControl("World", "WINDOW")
- {
- Geometry("RIGHT", "TOP");
- Position(-20, 30);
- Size(330, 140);
- BorderSize(10);
- BevelSize(5);
- TabSize(150, 10);
- Style("LEFTTAB", "OUTLINE");
- //Projector(2);
- Title("World Data");
-
- //
- // create the planet object viewer
- //
- CreateControl("Planet", "VIEWER")
- {
- ColorGroup("BACKGROUND");
-
- Position(0, 0);
- Size(160, 140);
- BorderSize(5);
- BevelSize(3);
- UseVar("shell.single.planet");
- SetAmbientColor(1.0, 1.0, 1.0);
- SetDiffuseColor(1.0, 1.0, 1.0);
- SetDiffuseDir(2.0, -5.0, 1.0);
- SetModelDistance(50.0);
- SetModelInclination(-30.0);
- SetModelRotation(60.0);
- }
-
- //
- // create the research item list
- //
-
- CreateControl("Title", "STATIC")
- {
- ColorGroup("LISTBOX");
- Geometry("RIGHT");
- Position(0, 0);
- Size(150, 140);
- Style("TRANSPARENT");
- Font("SMALL");
- JustifyText("LEFT");
- UseVar("shell.single.planetInfo");
- }
- }
-
- CreateControl("Story", "MULTITAB")
- {
- Geometry("LEFT", "BOTTOM");
- Position(20, -60);
- Size(600, 200);
- BorderSize(10);
- BevelSize(5);
- TabSize(150, 10);
- Style("OUTLINE");
- //Projector(1);
- TitleFont("MEDIUM");
- AddTab("Briefing", "Tab1");
- AddTab("Command Update", "Tab2");
- AddTab("Messages", "Tab3");
- //shell.single.update
- //shell.single.briefing
- //shell.single.messages
- }
-
- //
- // create the "launch" button
- //
- CreateControl("Launch", "BUTTON")
- {
- ColorGroup("MAGENTA");
-
- Geometry("RIGHT", "BOTTOM");
- Position(-20, -15);
- Size(100, 15);
- BorderSize(5);
- BevelSize(3);
- Text("Launch");
- Font("SMALL");
- JustifyText("CENTER");
- Style("ROLLOVER", "OUTLINE");
- //Projector(4);
- Cursor("Highlight");
- NotifyParent("Button::Press", "Launch");
- }
-
- //
- // create the "Load" button
- //
- CreateControl("Load", "BUTTON")
- {
- ColorGroup("MAGENTA");
-
- Geometry("RIGHT", "BOTTOM");
- Position(-145, -15);
- Size(100, 15);
- BorderSize(5);
- BevelSize(3);
- Text("Load");
- Font("SMALL");
- JustifyText("CENTER");
- Style("ROLLOVER", "OUTLINE");
- //Projector(4);
- Cursor("Highlight");
- NotifyParent("Button::Press", "Load");
- }
-
- //
- // create the "Archive" button
- //
- CreateControl("Archive", "BUTTON")
- {
- ColorGroup("MAGENTA");
-
- Geometry("RIGHT", "BOTTOM");
- Position(-270, -15);
- Size(100, 15);
- BorderSize(5);
- BevelSize(3);
- Text("Archive");
- Font("SMALL");
- JustifyText("CENTER");
- Style("ROLLOVER", "OUTLINE");
- //Projector(4);
- Cursor("Highlight");
- NotifyParent("Button::Press", "Archive");
- }
-
- //
- // handle the "launch" event
- //
- OnEvent("Launch")
- {
- Cmd("shell.single.launch");
- }
-
- //
- // handle the "options" event
- //
- OnEvent("Options")
- {
-
- }
-
- //
- // handle the "abort" event
- //
- OnEvent("Abort")
- {
- FadeOut();
- FadeIn("|ShellMain");
- }
- }
-